package b_buffer;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package b_buffer
 * @date 2024/4/14 上午11:54
 */
public class Test02 {
    public static void main(String[] args) {
        try {
            BufferedReader bufferedReader = new BufferedReader(new FileReader("module11\\1.txt"));
           String s=null;
           while((s= bufferedReader.readLine())!=null){
               System.out.println(s);
           }


        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
